# -*- coding: utf-8 -*-

def str_to_list(str_value,separator = " "):
    result = []
    one_data = str_value.replace("[","").replace("]","")\
        .replace("\"","").replace("\'","").replace("\n","").split(separator)
    for word in one_data:
        # if result != "\'\'" and result != "\'" and result != '"' and result != '':
        try:
            result.append(int(word))
        except:
            continue

    return  result
